package com.bienvenue.main.ui.activity.personal;

import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.content.ContextCompat;
import android.support.v4.view.ViewPager;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

import com.bienvenue.main.R;
import com.bienvenue.main.adapter.ViewPagerFragmentAdapter;
import com.bienvenue.main.base.BaseActivity;
import com.bienvenue.main.httpService.ResponseObserver;
import com.bienvenue.main.model.HttpBean;
import com.bienvenue.main.serviceApi.ServiceModel;
import com.bienvenue.main.ui.activity.enterprise.EnterPriseLoginActivity;
import com.bienvenue.main.ui.activity.enterprise.EnterpriseMainActivity;
import com.bienvenue.main.ui.fragment.enterprise.EnterpriseSmsLoginFragment;
import com.bienvenue.main.ui.fragment.personal.InterviewsFragment;
import com.bienvenue.main.ui.fragment.personal.PersonalSmsLoginFragment;

import org.zackratos.ultimatebar.UltimateBar;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * @ProjectName: Bienvenue
 * @Package: com.bienvenue.main.ui.activity
 * @ClassName: PhongSmsLoginActivity
 * @Description: java类作用描述
 * @Author: Mr.Chen
 * @CreateDate: 2020/9/9 13:47
 * @UpdateUser: Mr.Chen
 * @UpdateDate: 2020/9/9 13:47
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */


public class PhoneSmsLoginActivity extends BaseActivity {
    @BindView(R.id.tl_sms_login)
    TabLayout tlSmsLogin;
    @BindView(R.id.vp_page)
    ViewPager vpPage;

    List<CharSequence> listTitle=new ArrayList<>();
    List<Fragment> listFragment=new ArrayList<>();
    ViewPagerFragmentAdapter mAdapter;
    @Override
    protected void initData() {
        listTitle.add("个人登录");
        listTitle.add("企业登录");
        listFragment.add(new PersonalSmsLoginFragment());
        listFragment.add(new EnterpriseSmsLoginFragment());
        mAdapter = new ViewPagerFragmentAdapter(getSupportFragmentManager(), listFragment, listTitle);
        vpPage.setAdapter(mAdapter);
        tlSmsLogin.setupWithViewPager(vpPage);

    }

    @Override
    protected void initView() {
        UltimateBar ultimateBar = new UltimateBar(this);
        ultimateBar.setColorBar(ContextCompat.getColor(this, R.color.color_38A7D4));


    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_phone_sms_login;
    }


}
